import { NgModule, ErrorHandler } from '@angular/core';
import { IonicModule, IonicErrorHandler } from 'ionic-angular';
import { ReactiveFormsModule } from '@angular/forms';
import { Dmui } from '../../lib/dm-ui/dm-ui.module';
import { KeysPipe } from '../../app/app.pipe';

import { TasksPage } from './tasks';
import { DateComponent } from './date/date';
import { DetailPage } from './detail/detail';
import { TaskDetailPage } from './detail/page/page';
import { ApprovePage } from './detail/approve/approve'

import { TasksService } from './tasks.service';
import { DateService } from './date/date.service';
import { DetailService } from './detail/detail.service';

@NgModule({
    declarations: [
        TasksPage,
        DateComponent,
        DetailPage,
        TaskDetailPage,
        ApprovePage,
        KeysPipe
    ],
    imports: [
        IonicModule, ReactiveFormsModule, Dmui
    ],
    entryComponents: [
        TasksPage,
        DetailPage,
        ApprovePage
    ],
    providers: [{ provide: ErrorHandler, useClass: IonicErrorHandler }, TasksService, DateService, DetailService]
})
export class TasksModule { }
